package world0.npc;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

import world0.Npc;

public class NpcWaldo extends Npc{

	private Image image;
	
	public NpcWaldo(float x, float y, int index) throws SlickException {
		super(x, y, new Image("textures/charakters/spieler1.png").getSubImage(0, 0, 32, 64), index, 1);
		image = new Image("textures/charakters/spieler1.png").getSubImage(0,0,32,64);
		
		/* Standard properties for NPC type Waldo*/
		setName("Waldo");
	}
	
	public void draw(Graphics g) throws SlickException {
		image.drawCentered(getX(), getY());
		
		super.draw(g);
	}
}
